/*
 * @Author: CSG@HYC
 * @Date: 2025-07-14 09:31:19
 * @FilePath: \MDK-ARMe:\Desktop\F1_template\USER\Src\main.c
 */
#include "main.h"
#include "uart.h"
#include "core_cm3.h"
#include "clock.h"

uint32_t HCLKFreq;
uint32_t PCLK1Freq;
uint32_t PCLK2Freq;

int main()
{
	HAL_Init();
	HW_Clock_Init();
	
	USART1_Init(115200);
	

  HCLKFreq = HAL_RCC_GetSysClockFreq();	// 8000000
  PCLK1Freq = HAL_RCC_GetPCLK1Freq();		// 8000000
  PCLK2Freq = HAL_RCC_GetPCLK2Freq();		// 8000000
	
	printf("HCLKFreq = %d\r\n", HCLKFreq);
	printf("PCLK1Freq = %d\r\n", PCLK1Freq);
	printf("PCLK2Freq = %d\r\n", PCLK2Freq);

	
	while(1)
	{

	}
}